package com.hooper.iot.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ Copyright
 * @ Author     ：wangcheng.
 * @ Date       ：Created in 15:01 2022/4/27
 * @ Description：
 * @ Modified By：
 * @Version: $
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EventSoueceDto {
    private String msgId;
    private Long msgDate = System.currentTimeMillis();
    private String deviceId;
    private String msgType;
    private boolean callBack;
    private List<Body> body;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public Long getMsgDate() {
        return msgDate;
    }

    public void setMsgDate(Long msgDate) {
        this.msgDate = msgDate;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public boolean isCallBack() {
        return callBack;
    }

    public void setCallBack(boolean callBack) {
        this.callBack = callBack;
    }

    public List<Body> getBody() {
        return body;
    }

    public void setBody(List<Body> body) {
        this.body = body;
    }

    public class Body {
        private String event;
        private String eventSource;
        private Integer level;
        private String noticeType;
        private String txt;

        public String getEvent() {
            return event;
        }

        public void setEvent(String event) {
            this.event = event;
        }

        public String getEventSource() {
            return eventSource;
        }

        public void setEventSource(String eventSource) {
            this.eventSource = eventSource;
        }

        public Integer getLevel() {
            return level;
        }

        public void setLevel(Integer level) {
            this.level = level;
        }

        public String getNoticeType() {
            return noticeType;
        }

        public void setNoticeType(String noticeType) {
            this.noticeType = noticeType;
        }

        public String getTxt() {
            return txt;
        }

        public void setTxt(String txt) {
            this.txt = txt;
        }
    }


}
